home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / mail / pine3.96.tar.gz / pine3.96.tar / pine3.96 / pine / makefile.msc < prev    next >
Makefile  |  1996-03-18  |  4KB  |  138 lines

  1. # $Id: makefile.msc,v 4.33 1996/03/18 05:17:13 mikes Exp $
  2. #
  3. #            T H E    P I N E    M A I L   S Y S T E M
  4. #
  5. #   Laurence Lundblade and Mike Seibel
  6. #   Networks and Distributed Computing
  7. #   Computing and Communications
  8. #   University of Washington
  9. #   Administration Building, AG-44
  10. #   Seattle, Washington, 98195, USA
  11. #   Internet: lgl@CAC.Washington.EDU
  12. #             mikes@CAC.Washington.EDU
  13. #
  14. #   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  15. #
  16. #
  17. #   Pine and Pico are registered trademarks of the University of Washington.
  18. #   No commercial use of these trademarks may be made without prior written
  19. #   permission of the University of Washington.
  20. #
  21. #   Pine, Pico, and Pilot software and its included text are Copyright
  22. #   1989-1996 by the University of Washington.
  23. #
  24. #   The full text of our legal notices is contained in the file called
  25. #   CPYRIGHT, included with this distribution.
  26. #
  27. #
  28. #   Pine is in part based on The Elm Mail System:
  29. #    ***********************************************************************
  30. #    *  The Elm Mail System  -  Revision: 2.13                             *
  31. #    *                                                                     *
  32. #    *             Copyright (c) 1986, 1987 Dave Taylor               *
  33. #    *             Copyright (c) 1988, 1989 USENET Community Trust    *
  34. #    ***********************************************************************
  35. #
  36.  
  37.  
  38. #
  39. #     Make file for the Pine mail system for PC-DOS
  40. #
  41. #     NOTE: There are nmake preprocessing conditionals that control
  42. #           neccessary switches for the various IP stacks supported.
  43. #        There's also a switch for producing executables for
  44. #        symbol table include
  45. #
  46. #
  47. CC=cl
  48. CP=copy
  49. RM=del
  50. MAKE=nmake
  51.  
  52. #   Most commonly fiddled flags for compiler.
  53. #   Uncomment the setttings desired here
  54.  
  55. OPTIMIZE=    -Os
  56. #OPTIMIZE=    -Oq        # Oq is for pcode 
  57. PROFILE=     # -pg
  58. DEBUG=       # -Zi -Od
  59. CBASIC=      -WX -Gy -Gt2 -AL -DDOS -DMOUSE
  60. !IF    DEFINED(LWP)
  61. CFLAGS=         $(OPTIMIZE) $(DEBUG) $(CBASIC) -DLWP -DSYSTYPE=\"PCN\"
  62. LINKSCRIPT=  pine-lwp.lnk
  63. !ELSEIF    DEFINED(PCTCP)
  64. INCLUDES=    -Ic:\pctcp\toolkit\include
  65. CFLAGS=         $(OPTIMIZE) $(DEBUG) $(CBASIC) $(INCLUDES) -DPCTCP -DSYSTYPE=\"PCF\"
  66. LINKSCRIPT=  pine-pc.lnk
  67. !ELSEIF    DEFINED(PCNFS)
  68. INCLUDES=    -Ic:\nfs\ptk40\include
  69. CFLAGS=         $(OPTIMIZE) $(DEBUG) $(CBASIC) $(INCLUDES) -DPCNFS -DSYSTYPE=\"PCS\"
  70. LINKSCRIPT=  pine-nfs.lnk
  71. !ELSE
  72. CFLAGS=         $(OPTIMIZE) $(DEBUG) $(CBASIC) -DSYSTYPE=\"PCP\"
  73. LINKSCRIPT=  pine-wat.lnk
  74. !ENDIF
  75.  
  76. LIBES =  # -ltermlib 
  77.  
  78. HEADERS= headers.h pine.h os.h helptext.h context.h \
  79.       ../c-client/mail.h ../c-client/osdep.h
  80.  
  81. OBJ=    addrbook.obj adrbklib.obj args.obj context.obj \
  82.     filter.obj folder.obj help.obj imap.obj init.obj mailcap.obj \
  83.     mailcmd.obj mailindx.obj mailpart.obj mailview.obj newmail.obj \
  84.     os.obj other.obj pine.obj reply.obj screen.obj send.obj \
  85.     signals.obj status.obj strings.obj ttyin.obj ttyout.obj  
  86.     
  87. all:    pine.exe
  88.     
  89. .c.obj:
  90.     $(CC) -c $(CFLAGS) $*.c
  91.  
  92. os.h:    osdep\os-dos.h
  93.     $(RM) os.h
  94.     $(CP) osdep\os-dos.h os.h
  95.  
  96. os.c:    osdep\os-dos.c
  97.     $(RM) os.c
  98.     $(CP) osdep\os-dos.c os.c
  99.  
  100. osdep\os-dos.c:    osdep\bld_path.dos osdep\canacces osdep\canonicl.dos \
  101.         osdep\chnge_pw.dos osdep\coredump osdep\creatdir.dos \
  102.         osdep\diskquot.non osdep\domnames.dos osdep\dosextra \
  103.         osdep\err_desc.dos osdep\expnfldr.dos osdep\filesize \
  104.         osdep\fltrname.dos osdep\fnexpand.dos osdep\header \
  105.         osdep\hostname osdep\jobcntrl.dos osdep\lstcmpnt.dos \
  106.         osdep\mimedisp osdep\print.dos osdep\pw_stuff.dos \
  107.         osdep\debuging.dos osdep\readfile.dos osdep\rename.dos \
  108.         osdep\tempfile osdep\tempnam.dos osdep\fgetpos \
  109.         osdep\writ_dir osdep\sendmail.dos osdep\execview.dos \
  110.         osdep\os-dos.ic
  111.     cd osdep
  112.     $(MAKE) -f makefile.dos includer.exe os-dos.c
  113.     cd ..
  114.  
  115. helpindx.exe:    helpindx.c
  116.         cl helpindx.c
  117.  
  118. pine.ndx:    helpindx.exe pine.hlp
  119.         helpindx pine.hlp pine.ndx helptext.h
  120.  
  121. helptext.h:    pine.ndx
  122.  
  123. #helptext.c:    pine.hlp 
  124. #        ./cmplhelp.sh  < pine.hlp > helptext.c
  125.  
  126. $(OBJ):    $(HEADERS)
  127.  
  128. pine.exe:  $(OBJ) pine.def ..\c-client\cclient.lib ..\pico\libpico.lib
  129.     ..\pico\blddate > bdate.c
  130.     $(CC) /c $(CFLAGS) bdate.c
  131. # this is for pine 8086 instruction version without symbol table
  132.     link /F /NOI /NOE /DYNAMIC:2048 /MAP:FULL /st:44000 /se:512 @$(LINKSCRIPT)
  133. # for testing 
  134. #    link /CO /F /NOI /NOE /DYNAMIC:2048 /MAP:FULL /st:44000 /se:512 @$(LINKSCRIPT)
  135. # this is for generating pcode
  136. #    link /PCODE /PACKC:55000 /I /F /NOI /NOE /st:32000 /se:256 @pine.lnk
  137.